function NAME = generateUniqueTmpName()
if ~exist('tmp_CS','dir'), mkdir('tmp_CS'); end
NAME = ['tmp_CS/' num2str(round(rand()*1e8)) '.mat'];
while exist(NAME,'file')
    NAME = ['tmp_CS/' num2str(round(rand()*1e8)) '.mat'];
end

